import Base from './Base/Index'

class Index extends Base {
    name: String = '';

    constructor() {
        super();
        console.log(1234);
        console.log([1, 2, 3].reduce((item:Array<String>, next:Number) => {
            item.unshift(`${next}${this.name}`);
            return item
        }, []));
        console.log(''.padStart(3,'0'))
    }

    getName() {
        return this.name
    }
    setName(){
        return new Promise(((resolve, reject) => {
            setTimeout(()=>{
                resolve()
            },1000)
        }))
    }
}

new Index();

export default Index